#ifndef __SW_SOUND_MANAGER_H__
#define __SW_SOUND_MANAGER_H__

#include <allegro5\allegro_audio.h>
#include <string>

class sw_sound_manager {
	ALLEGRO_SAMPLE_INSTANCE **instances;
	ALLEGRO_AUDIO_STREAM** streams;
	bool* playing;
	std::string* soundfiles;

public:
	const static int sw_sound_types_num = 3;
	static enum sw_sound_types {
		SW_SOUND_BGM,
		SW_SOUND_MAIN_JUMP,
		SW_SOUND_ENEMY_DEATH
	};
	sw_sound_manager();
	~sw_sound_manager();
	void set_sound(int sound_type, char* filename);
	void play_sound(int sound_type, bool restart);
};

#endif